Skip to main content
POST
Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Authorizations

x-key
string
header
required

Body

application/json
finetune_id
string
required

Name of the LoRA to use. For LoRAs from other organizations (public or shared), use the format 'org-id/lora-name'.

Example:

"my-finetune"

finetune_strength
number
default:1.2

Strength of the fine-tuned model. 0.0 means no influence, 1.0 means full influence. Allowed values up to 2.0

Required range: 0 <= x <= 2
prompt
string | null
default:""

The prompt to use for image generation.

Example:

"A beautiful landscape with mountains and a lake"

seed
integer | null

Optional seed for reproducibility. If not provided, a random seed will be used.

Example:

42

aspect_ratio
string
default:16:9

Aspect ratio of the image between 21:9 and 9:21

safety_tolerance
integer
default:2

Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.

Required range: 0 <= x <= 6
Example:

2

output_format
enum<string> | null
default:jpeg

Output format for the generated image. Can be 'jpeg', 'png', or 'webp'.

Available options:
jpeg,
png,
webp
image_prompt
string | null

Optional image to remix in base64 format

image_prompt_strength
number
default:0.1

Blend between the prompt and the image prompt

Required range: 0 <= x <= 1
prompt_upsampling
boolean
default:false

Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation

webhook_url
string<uri> | null

URL to receive webhook notifications

Required string length: 1 - 2083
webhook_secret
string | null

Optional secret for webhook signature verification

Response

Successful Response

id
string
required
polling_url
string
required
cost
number | null

Cost in credits for this request

input_mp
number | null

Input megapixels (2 decimal places)

output_mp
number | null

Output megapixels (2 decimal places)